<h2>Sign in</h2>

<%= form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f| %>
  <div class="inputs">
    <%= f.label :email %>
    <%= f.text_field :email, :required => false, :autofocus => true %>

    <%= f.label :password %>
    <%= f.password_field :password, :required => false %>

    <%= f.label :remember_me %>
    <%= f.check_box :remember_me, :as => :boolean if devise_mapping.rememberable? %>
  </div>

  <div class="actions">
    <%= f.submit "Sign in" %>
  </div>
<% end %>
